home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / ctime < prev    next >
Text File  |  2001-07-14  |  786b  |  25 lines

  1. SYNOPSIS
  2.         string ctime(int clock)
  3.         string ctime(int* uclock)
  4.  
  5. DESCRIPTION
  6.         Interpret the argument clock as number of seconds since Jan,
  7.         1st, 1970, 0.00 and convert it to a nice date and time string.
  8.         If clock is not specified, time() is used as default.
  9.  
  10.         The second form is like the first, except that it takes as argument
  11.         an array of ints as it is returned from utime(): int[0] is the number
  12.         of seconds like before, int[1] is the number of microseconds within
  13.         that second.
  14.  
  15. EXAMPLE
  16.         write(ctime()+"\n");
  17.         
  18.         This will print out something like "Fri Jul 17 19:13:33 1992".
  19.         
  20. HISTORY
  21.         LDMud 3.2.9 introduced the second form.
  22.  
  23. SEE ALSO
  24.         gmtime(E), localtime(E), time(E), utime(E)
  25.